/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package server;

/**
 *
 * @author ahmed
 */
class MonitorReadings {
    private long encPeriod;
    private long decPeriod;
    private int encNumber;
    private int decNumber;
    
    public MonitorReadings() {
        reset();
    }
    
    public void reset(){
        encPeriod = 0;
        decPeriod = 0;
        encNumber = 0;
        decNumber = 0;
    }
    
    public void addEncStats(long per, int number)
    {
        encPeriod += per;
        encNumber += number;
    }
    
    public void addDecStats(long per, int number)
    {
        decPeriod += per;
        decNumber += number;
    }

    public int getDecNumber() {
        return decNumber;
    }

    public long getDecPeriod() {
        return decPeriod;
    }

    public int getEncNumber() {
        return encNumber;
    }

    public long getEncPeriod() {
        return encPeriod;
    }
    
    
}
